.cardWrapper {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  height: 100%;
}

.collapsibleCard {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px;
  background-color: #f5f8fc;
  border-bottom: 1px solid #e6e9f0;
  height: 36px;
}

.cardTitle {
  font-weight: bold;
  font-size: 14px;
  color: #7a8ba3;
}

.cardActions {
  display: flex;
  gap: 4px;
}

.actionButton {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  height: 24px;
  width: 24px;
  padding: 0;
  color: #a0aec0;
  background-color: transparent;
  border-color: transparent;
}

.actionButton:hover {
  color: #6d9ecc;
  background-color: rgba(109, 158, 204, 0.06);
}

.cardContent {
  flex: 1;
  overflow: auto;
  padding: 0;
  background-color: #fff;
  color: #333;
}

/* 最大化状态 */
.maximized {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: calc(100vh - 40px) !important;
  z-index: 100;
  border-radius: 0 !important;
}

/* 折叠状态 - 左 */
.collapsedLeft {
  width: 36px !important;
  min-width: 36px !important;
  flex: 0 0 36px !important;
  overflow: hidden;
}

/* 折叠状态 - 右 */
.collapsedRight {
  width: 36px !important;
  min-width: 36px !important;
  flex: 0 0 36px !important;
  overflow: hidden;
}

/* 折叠状态 - 上 */
.collapsedUp {
  height: 36px !important;
  min-height: 36px !important;
  flex: 0 0 36px !important;
  overflow: hidden;
}

/* 折叠状态 - 下 */
.collapsedDown {
  height: 36px !important;
  min-height: 36px !important;
  flex: 0 0 36px !important;
  overflow: hidden;
}

/* 折叠内容样式 */
.collapsedContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 8px;
}

.collapsedLeftContent, .collapsedRightContent {
  flex-direction: column;
  padding: 8px 0;
}

.collapsedUpContent, .collapsedDownContent {
  flex-direction: row;
}

.collapsedTitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  color: #7a8ba3;
}

.collapsedLeftContent .collapsedTitle, .collapsedRightContent .collapsedTitle {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  margin-bottom: 8px;
}

/* 水平折叠状态 (左/右) */
.collapsedHorizontal .cardHeader {
  display: none;
}

.collapsedHorizontal .cardContent {
  display: none;
}

/* 垂直折叠状态 (上/下) */
.collapsedVertical .cardHeader {
  display: none;
}

.collapsedVertical .cardContent {
  display: none;
}

/* 上下折叠时的水平布局 */
.collapsedContentHorizontal {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  height: 100%;
}

.collapsedTitleHorizontal {
  writing-mode: horizontal-tb;
  transform: none;
  max-width: 70%;
  max-height: none;
  margin: 0;
}

.collapsedActions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* 上下折叠时的操作按钮 */
.collapsedContentHorizontal .collapsedActions {
  flex-direction: row;
}

.collapsedActions .actionButton {
  font-size: 12px;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: #f0f4fa;
  border: 1px solid #e6e9f0;
  color: #a0aec0;
}

.collapsedActions .actionButton:hover {
  background-color: #edf2f7;
  border-color: #6d9ecc;
  color: #6d9ecc;
} 